
<html><title>pyojo Test page</title><meta http-equiv="content-type" content="text/html; charset=utf-8">
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
<link rel="StyleSheet" type="text/css" href="/static/js/dojo/dijit/themes/claro/claro.css">
<link rel="StyleSheet" type="text/css" href="/static/css/pyojo.css">
<script src="/static/js/dojo/dojo/dojo.js" data-dojo-config="async:true, packages:[{name: 'pyojo', location: '/pyojo'}]">
</script></head><body id="base" class="claro">

<script>

require(['dojo/ready', 
         'dijit/MenuBar', 
         'dijit/PopupMenuBarItem', 
         'dijit/Menu', 
         'dijit/MenuItem', 
         'dijit/PopupMenuItem', 
         'dijit/DropDownMenu', 
         'dojo/on', 
         'dojo/dom',
         'dojo/domReady!'], 

function(ready, MenuBar, PopupMenuBarItem, Menu, MenuItem, PopupMenuItem, DropDownMenu, on, dom) {
ready(function(){
Menu = new MenuBar({id: 'Menu'});
Menu_sys = new DropDownMenu({});
Menu.addChild(new PopupMenuBarItem({popup: Menu_sys, label: 'Sistema'}));

salir = new MenuItem({iconClass: 'dijitIcon dijitIconDelete', id: 'menu_exit', label: 'Salir'});
Menu_sys.addChild(new MenuItem({iconClass: 'dijitIcon dijitIconKey', id: 'menu_login', label: 'Acceso'}));
Menu_sys.addChild(salir);

Menu.placeAt('base');
Menu.startup();

on(salir, 'click', function(e){alert(dom.byId('menu_exit'));});
})
});</script>

xx

<script>

require(['dojo/ready', 
         'dojo/on', 
         'dojo/dom',
         'dojo/domReady!'], 

function(ready, on, dom) {
ready(function(){
alert(dom.byId('menu_exit'))

})});</script>

</body></html>